package com.rentong.constants;

/**
 * @author ZXY
 * @ClassName: RedisKeyEnum
 * @Description:
 * @date 2017/11/9 15:57
 */
public enum RedisKeyEnum {
    sys_login_key("user:sys:login:", "后台用户登录缓存token前缀"),
    sys_user_info("user:sys:token:", "后台用户登录缓存用户信息前缀"),
    open_login_key("user:open:login:", "APP用户登录缓存token前缀"),
    open_user_info("user:open:token:", "APP用户登录缓存用户信息前缀"),
    biz_login_key("biz:open:login:", "APP商户登录缓存token前缀"),
    biz_user_info("biz:open:token:", "APP商户登录缓存商户信息前缀"),

    redis_SMS("sms:code:", "短信验证码");


    private String key;
    private String desc;

    RedisKeyEnum(String key, String desc) {
        this.key = key;
        this.desc = desc;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
